from jinja2 import Environment

def jinja2_environment(**options):
    """jinja2环境"""
    env = Environment(**options)  # 创建环境对象
    # 返回环境对象
    return env
